﻿<%@ Page Title="" Language="VB" MasterPageFile="~/naija.Master" AutoEventWireup="false" CodeFile="UploadStyle.aspx.vb" Inherits="UploadStyle" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="Container">
    <div id="LeftHorizantalDetails">
    <div class="UserImage">
        </div>
    <div class="LeftAdvert"></div>
    </div>
    <div id="MainContentDetails"> 
        <p>
            <asp:LoginName ID="LoginName1" runat="server" />
        </p>
        <h1>
            Uploading Instructions</h1>
        <p>
            In this first step you will upload your photo. We suggest you follow a few easy tips to help your photo transmit your unique sense of style: </p>
        <ol>
            <li>Light!, light!!, light!!! You can never have enough light around you when you take your photo. If possible, take it outside during a sunny day.</li>
            <li>Take your photo in portrait orientation. That is, vertical, or up and down. This will allow your photo to appear larger.</li>
            <li>Take a number of photos from different angles and upload the photo that you think best represents the style message you are trying to present to the world.</li>
        </ol>
        <p>
            When you have decided on a photo to upload, click ‘Browse’ and locate the photo on your computer. The photo must be 10 megabytes or less in size and in jpg formats &nbsp;</p>
       <table><tr><td>Category:</td><td>
           <asp:DropDownList ID="CategoryDrop" runat="server" AutoPostBack="True" 
               DataSourceID="Category" DataTextField="CatName" DataValueField="ID">
           </asp:DropDownList>
           <asp:SqlDataSource ID="Category" runat="server" 
               ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
               ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
               SelectCommand="SELECT [ID], [CatName] FROM [Categories]">
           </asp:SqlDataSource>
           </td>    </tr><tr><td>Style:</td><td>
               <asp:DropDownList ID="StyleDrop" runat="server" DataSourceID="Style" 
                   DataTextField="StyleName" DataValueField="CategoryID">
               </asp:DropDownList>
               <asp:SqlDataSource ID="Style" runat="server" 
                   ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                   ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
                   SelectCommand="SELECT [ID], [CategoryID], [StyleName] FROM [Style] WHERE ([CategoryID] = ?)">
                   <SelectParameters>
                       <asp:ControlParameter ControlID="CategoryDrop" Name="CategoryID" 
                           PropertyName="SelectedValue" Type="Int32" />
                   </SelectParameters>
               </asp:SqlDataSource>
               </td>    </tr><tr><td>Gender:</td><td>
               <asp:DropDownList ID="GenderDrop" runat="server" DataSourceID="Gender" 
                   DataTextField="GenderName" DataValueField="ID">
               </asp:DropDownList>
               <asp:SqlDataSource ID="Gender" runat="server" 
                   ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                   ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
                   SelectCommand="SELECT [ID], [GenderName] FROM [Gender]"></asp:SqlDataSource>
               </td>    </tr><tr><td>Ethnic Group</td><td>
               <asp:DropDownList ID="EthnicDrop" runat="server" DataSourceID="ethnic" 
                   DataTextField="EthnicName" DataValueField="ID">
               </asp:DropDownList>
               <asp:SqlDataSource ID="ethnic" runat="server" 
                   ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                   ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
                   SelectCommand="SELECT [ID], [EthnicName] FROM [Ethnic]"></asp:SqlDataSource>
               </td>    </tr><tr><td>Date:</td><td>
               <asp:Label ID="TodayDate" runat="server"></asp:Label>
               </td>    </tr>
               <tr><td>Picture Title:</td><td>
               <asp:TextBox ID="PictTitle" runat="server" Width="247px"></asp:TextBox>
               </td>    </tr><tr><td>Brows Picture:</td><td>
               <asp:FileUpload ID="ImageUpload" runat="server" Width="248px" />
               </td>    </tr><tr><td valign="top">Descriptions</td><td>
               <asp:TextBox ID="Discription" runat="server" Height="107px" TextMode="MultiLine" 
                   Width="245px"></asp:TextBox>
               </td>    </tr><tr><td valign="top">&nbsp;</td><td>
               <asp:Button ID="Submit" runat="server" Text="Submit" />
&nbsp;&nbsp;
               <asp:Button ID="Cancil" runat="server" Text="Cancil" />
               </td>    </tr><tr><td valign="top">&nbsp;</td><td>
               <asp:Label ID="UploadDetails" runat="server"></asp:Label>
               </td>    </tr></table>
    </div>
      </div>
        
</asp:Content>

